package com.webtair.dump4j.objectdump;

public class ObjectDumpString implements ObjectDump{
	String val;
	boolean returned = false;
	public String getStringRepresentation() {
		return val;
	}
	/**
	 * @return Returns the val.
	 */
	public String getVal() {
		return val;
	}
	/**
	 * @param val The val to set.
	 */
	public void setVal(String val) {
		this.val = val;
	}
	public String nextBlock() {
		if(!returned)
			return firstBlock();
		return null;
	}
	public String firstBlock() {
		returned = true;
		return val;
	}
	public void addBlock(String block) {
		if(val.length()>0)
			val+="\n";
		val+=block;
	}
	public void clear() {
		val = new String();
	}



}
